import os
import sys

if len(sys.argv)>=3:
    #print(sys.argv)
    a1 = int(sys.argv[1])
    a2 = int(sys.argv[2])
    n1 = a1
    n2 = a2
    #print('n1=',n1,'n2=',n2)

    while n1 != n2:
        if n1 > n2:
            n1 = n1 - n2
        else:
            n2 = n2 - n1

    print((a1/n1),':',(a2/n1))
    
else:
    print('没有输入参数！')